def loopwhiledemo():
    number = [12, 21, 32, 43, 15, 1]
    even = []
    odd = []
    while len(number) >= 1:
        data = number.pop()
        print(data)
        if data % 2 == 0:
            even.append(data)
        else:
            odd.append(data)
    print(even + odd)


def loopfordemo01():
    number = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
    even = []
    odd = []
    for data in number:
        print("data", data)


def loopfordemo02():
    for num in range(10, 20):
        for i in range(2, num):
            if num % i == 0:
                j = num / i
                print("%d 等于 %d * %d", num, i, j)
                break
            else:
                print("%d是一个质数'", num)
    return



# count = 0
# while (count < 9):
#     print
#     'The count is:', count
#     count = count + 1
#     print("Good bye!")
